﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediaScraper.Adapters.Plex.Entities
{
    [Table("library_sections")]
    public class LibrarySection
    {
        [Key]
        [Column("id")]
        public Int64 Id { get; set; }
        [Column("name")]
        public string Name { get; set; }
        [Column("scanner")]
        public string Scanner { get; set; }
        private ICollection<SectionLocation> _locations = new Collection<SectionLocation>();
        public ICollection<SectionLocation> Locations
        {
            get { return _locations; }
            set { _locations = value; }
        }
    }
}
